#import <Foundation/Foundation.h>
#import "cn1socket_Socket.h"

@interface cn1socket_NativeSocketImpl : NSObject {
	NSString* exception;
	NSString* exceptionMessage;

	NSInputStream* inputStream;
	NSOutputStream* outputStream;
}

-(NSString*)getException;
-(NSString*)getExceptionMessage;
-(void)connect:(NSString*)param param1:(int)param1;
-(void)close;

// InputStream
-(int)available;
-(int)read;
-(NSData*)read:(int)param;

// OutputStream
-(void)flush;
-(void)write:(int)param;
-(void)writeBuffer:(NSData*)param;
-(void)writeBuffer:(NSData*)param param1:(int)param1 param2:(int)param2;

@end